import bs4, requests

exampleFile = open("F:\\learning\\python\\automate\\example.html")
soup = bs4.BeautifulSoup(exampleFile, features="html.parser")
# print(type(soup))
# print(soup.text)

# elems = soup.select("#author")
# print(len(elems))
# print(type(elems[0]))
# print(elems[0].getText())
# print(str(elems[0]))
# print(elems[0].attrs)


pelems = soup.select('p')
print(str(pelems))
print(len(pelems))
print(pelems[0].getText())
print(pelems[1].getText())
print(pelems[2].getText())